package com.homework.ch06;

public class Automobile {
    private String brand;
    private String plateNumber;
    private int price;
    public Automobile(String brand,String plateNumber){
        this.brand=brand;
        this.plateNumber=plateNumber;
    }
    public String getBrand()
    {
        return this.brand;
    }
    public String getPlateNumber()
    {
        return this.plateNumber;
    }
    public int getRent(int day)
    {
        return day*price;
    }
    public void setPrice(int price)
    {
        this.price=price;
    }
    public int getPrice()
    {
        return this.price;
    }
}
